//
//  XYClassifyReusableView.swift
//  XYReadBook
//
//  Created by fox on 2017/9/6.
//  Copyright © 2017年 tsaievan. All rights reserved.
//

import UIKit

class XYClassifyReusableView: UICollectionReusableView {
    
    var titleString:String = "" {
        didSet {
            titleLab.text = titleString
        }
    }
    var titleLab = UILabel()
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    
    
    func setupUI() {
        addSubview(titleLab)
    }
    
    
    override func layoutSubviews() {
        super.layoutSubviews()
        titleLab.frame = CGRect.init(x: 0, y: 12, width: 50, height: 16)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
